<%--
  Created by IntelliJ IDEA.
  User: liuzhenxing
  Date: 2018/10/20
  Time: 8:53 PM
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<c:set var="BASE" value="${pageContext.request.contextPath}" />
<html>
<head>
    <title>编辑客户</title>
</head>
<body>
<h>新建一个客户</h>
<form action="${BASE}/customer_edit" method="PUT">
    <input type="hidden" name="_METHOD" value="PUT"/>
    <table>
        <thead>
        <tr>
            <td>名称</td>
            <td>值</td>
        </tr>
        </thead>
        <tbody>
        <tr>
            <td>客户名称</td><td><input name="name" type="text" value="${customer.name}"/></td>
        </tr>
        <tr>
            <td>联系人</td><td><input name="contact" type="text" value="${customer.contact}"/></td>
        </tr>
        <tr>
            <td>电话号码</td><td><input name="telephone" type="text" value="${customer.telephone}"/></td>
        </tr>
        <tr>
            <td>邮箱地址</td><td><input name="email" type="text" value="${customer.email}"/></td>
        </tr>
        <tr>
            <td colspan="2"><input type="submit"  value="更新" /> </td>
        </tr>
        </tbody>
    </table>

</form>

</body>
</html>
